﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCenter/UserMain.master" AutoEventWireup="true" CodeBehind="ApplyPermit.aspx.cs" Inherits="Exhibition.UserCenter.ApplyPermit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        $(function () {
            YXQ.UploadCenter.FileUploadCenter("uploadbadlogo");
        })
        $(function () {
            $("#checkAll").click(function () {
                $('input[name="subBox"]').attr("checked", this.checked);
            });
            var $subBox = $("input[name='subBox']");
            $subBox.click(function () {
                $("#checkAll").attr("checked", $subBox.length == $("input[name='subBox']:checked").length ? true :false);
            });
        });

        


    </script>
    <div class="title">参展证申请</div>
    <div class="m_conbor">
        <div class="con czz" id="tbDetail">
            <p><span>公司名称：</span> <input type="text" id="CompName"  datafield="CompName" class="text"/>
            </p>
            <p><span>姓　　名：</span><input type="text" id="RealName" datafield="RealName"  class="text"/>
            </p>
            <p><span>职　　务：</span>
               <input type="text" id="Position" datafield="Position"  class="text"/></p>
            <p style="float: left;">

                <span>照　　片：</span><div>  <img src="../images/nopic.jpg" width="220" height="220"  id="spPic"  datafield="spPic"/>
                <input type="hidden"   id="hfPic" datafield="hfPic" /></div>
                <div id="fileQueue"><li> <input type="file" name="uploadify" id="uploadify" /></li><li><input type="button" class="bt_wb1" value="上传" onclick="$('#uploadify').uploadifyUpload();" /></li>
                     </div>
                    <input type="hidden"  id="UserLogo" datafield="UserLogo"/>
                    <input type="hidden" id="Id" datafield="Id" value="0"/>
                     <input type="hidden" id="hfId" datafield="hfId" value="0"/>
                     <input type="hidden" id="hfSiteId" runat="server" datafield="SiteId"/>
                    <input type="hidden" id="CreateUserId" datafield="CreateUserId"  runat="server"/>
                    <input type="hidden" id="CreateUserName" datafield="CreateUserName"  runat="server"/>

               
            </p>
            <div class="btn">
              <input type="button" class="bt_wb1" value="保存"  onclick="YXQ.Main.SaveBadge();"/>
            </div>
        </div>
        <div class="jltit">已添加记录</div>
        <table  cellpadding="0" cellspacing="0" border="0" class="czztable">
            <tr>
                <td class="td1">
                    <input type="checkbox" onclick="TogSelect();" id="checkAll" /></td>
                <td class="td2"><b>编号</b></td>
                <td class="td3"><b>照片</b></td>
                <td class="td4"><b>姓名</b></td>
                <td class="td5"><b>职务</b></td>
                <td class="td6"><b>公司名称</b></td>
                <td class="td7"><b>操作</b></td>
            </tr>
          
            <asp:Repeater ID="repList" runat="server">
                <ItemTemplate>
                    <tr>
                        <td class="td1">
                            <input type="checkbox" name="subBox"  value="<%#Eval("Id") %>"/></td>
                        <td><%#Eval("Id") %></td>
                        <td class="td3">
                            <img src="<%#Eval("UserLogo")==null|| Eval("UserLogo")==""? "../images/nopic.jpg":Eval("UserLogo").ToString() %>" /></td>
                        <td><%#Eval("RealName") %></td>
                        <td><%#Eval("Position") %></td>
                        <td><%#Eval("CompName") %></td>
                        <td><a href="javascript:" onclick="YXQ.Main.GetBadge('<%#Eval("Id") %>')">[编辑]</a></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td colspan="7" class="dbtd"><a href="javascript:" onclick="YXQ.Main.DelBadge();">删除</a></td>
            </tr>
        </table>
    </div>


</asp:Content>
